function create_chart(name,title,r,g,b){
	if($(name).length<=0){
		return;
	}
	var ctx = $(name).get(0).getContext("2d");
	var lineChart = new Chart(ctx, {
	type: 'line',
	data: {
		labels: ["6月1日", "6月2日", "6月3日", "6月4日", "6月5日", "6月6日", "6月7日","6月8日", "6月9日", "6月10日", "6月11日", "6月12日", "6月13日", "6月14日"],
		datasets: [{
		label: title,
		backgroundColor: "rgba("+r+", "+g+", "+b+", 0.31)",
		borderColor: "rgba("+r+", "+g+", "+b+", 0.7)",
		pointBorderColor: "rgba("+r+", "+g+", "+b+", 0.7)",
		pointBackgroundColor: "rgba("+r+", "+g+", "+b+", 0.7)",
		pointHoverBackgroundColor: "#fff",
		pointHoverBorderColor: "rgba(220,220,220,1)",
		pointBorderWidth: 1,
		data: [0.031, 0.0074, 0.06, 0.039, 0.020, 0.0085, 0.007,0.031, 0.0074, 0.06, -0.039, 0.020, 0.0085, 0.007]
		}, ]
	},
	options:{
		elements: {
			line: {
				tension: 0 // no bezier in radar
			}
		}

	}
	});
}
//create_chart("#lineChartDemo","NEA基金走势",185,154,38);
create_chart("#lineChartDemo1","NEA账户变动",185,38,154);
create_chart("#lineChartDemo2","USD账户变动",38,154,185);
